package com.zerdoor.service.impl;

import com.zerdoor.dao.RaceDao;
import com.zerdoor.service.RaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by xiaoji on 2015/1/5.
 */
@Service
public class RaceServiceImpl implements RaceService {
    @Autowired
    private RaceDao raceDao;

    @Override
    public List<Map<String, Object>> getRaceAdvert() {
        return raceDao.getRaceAdvert();
    }

    @Override
    public List<Map<String, Object>> getGoingRace() {
        return raceDao.getGoingRace();
    }

    @Override
    public List<Map<String, Object>> getGoingGroup() {
        return raceDao.getGoingGroup();
    }

    @Override
    public List<Map<String, Object>> getFinishRace() {
        return raceDao.getFinishRace();
    }
}
